package com.ruoyi.web.controller.example;
import com.ruoyi.common.annotation.Anonymous;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.beans.factory.annotation.Value;
@Anonymous
@RestController
@RequestMapping("/first")
@Api(tags = "管理")
public class controller {
    @Value("${ruoyi.name}")
    private  String ruoyiName;
    @Value("${ruoyi.version}")
    private  String ruoyiVersion;
@ApiOperation(value = "hello1")
    @GetMapping("/hello")
    public String first(){
        return "ruoyiname"+ruoyiName+"   Version"+ruoyiVersion;
    }
@ApiOperation(value = "hello2")
@GetMapping("/hello2")
public String second(){
    return "hellow world";
}
};